package com.sdu.hotel.entity.system;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.sdu.hotel.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xyh
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table("sys_user_role")
public class SysUserRole extends BaseEntity implements Serializable {

    public SysUserRole(String userRoleId,String userId,String roleId)
    {
        //this.userRoleId = userRoleId;
        super.setId(userRoleId);
        this.userId = userId;
        this.roleId = roleId;
    }


    @Column("user_id")
    private String userId;

    @Column("role_id")
    private String roleId;

    @Column(value = "update_time",onInsertValue = "now()")
    private Date updateTime;

}
